Let State update before running async function